import React from 'react'
import './index.css'
import Item from './Item'
export default function List({ todoList }) {
  //console.log(todoList,'todoList');
  return (
    <ul className="todo-main">

      {
        todoList.map(item => {
          return <Item key={item.id} item={item}/>
        })
      }

    </ul>
  )
}
